<extend name='Public/_Login' />
<block name='body'>
    <include file='Public/_TopChannel' />
    <div class='container-fluid'>
        <div class='row'>
            <div class='col-xs-12'>
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <ol style="margin-bottom: 0px;" class="breadcrumb">
                            <li><a href="__APP__/">首页</a></li>
                            <li><a href="{:U('Index/notice')}">公告</a></li>
                            <li class="active">公告消息</li> {$add_button} </ol>
                    </div>
                    <div class="panel-body">
                        <include file='Public/_datetime' /> {:getTables($mid,$array,$where,0,$rollback)}
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- Modal -->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-hidden="true" mid='{$mid}'>
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">{$FormConfig.title}</h4>
                </div>
                <div class="modal-body">
                    <form class="require" action="{$FormConfig.url}" method="post">
                        {$form}
                        <br/>
                        <br/>
                        <div class='col-xs-6'>
                            <button class="btn btn-lg btn-primary btn-block" type="submit">保存</button>
                        </div>
                        <div class='col-xs-6'>
                            <button class="btn btn-lg btn-default btn-block" type="button" data-dismiss="modal">关闭</button>
                        </div>
                    </form>
                    <br/>
                    <br/>
                    <br/>
                </div>
            </div>
        </div>
    </div>
    <!--end Modal-->
</block>